﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Itfort;
using Itfort.Web;

namespace WanPiJie.WebSite.MyBaby
{
	public partial class AddGrowthRecord : PageMustLogin_Baby
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected void BtnOK_Click(object sender, EventArgs e)
		{
			double height = Request.ToDouble("f_Height");
			double weight = Request.ToDouble("f_Weight");
			double headSize = Request.ToDouble("f_HeadSize");
			double chestSize = Request.ToDouble("f_ChestSize");
			DateTime surveyDate = Request.ToDateTime("f_SurveyDate");

			GrowthRecord growthRecord = WpjSf.GrowthRecordService.AddGrowthRecord(this.Baby.Id, surveyDate, height, weight, headSize, chestSize);
			Response.Redirect("GrowthRecordIndex.aspx", false);
		}
	}
}